$PAGE_PADDING: 16px;

@import "normalize";
@import "common";

@import "bootstrap";
@import "nprogress";
@import "animate.mini";


@font-face {
  font-family: "ChangAnunitype-Bold";
  font-style: normal;
  font-weight: normal;
  font-stretch: 100%;
  src: url(#{$base_path}/font/HYCuJianHeiJ.ttf);
}

@font-face {
  font-family: 'ChangAnunitype-Light';
  font-style: normal;
  font-weight: normal;
  font-stretch: 100%;
  src: url(#{$base_path}/font/HYXiJianHeiJ.ttf);
}
@font-face {
  font-family: 'ChangAnunitype-Regular';
  font-style: normal;
  font-weight: normal;
  font-stretch: 100%;
  src: url(#{$base_path}/font/HYZhongJianHeiJ.ttf);
}

:root:root {
  --adm-color-primary: #cdd8eb;
  --adm-color-secondary: #1b47af;
  --adm-color-lighter: #27c1ff;
  --adm-font-family: "ChangAnunitype-Regular", -apple-system, blinkmacsystemfont, 'Helvetica Neue', helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
  --app-height: 100%;
  --max-width: 430px;
  // --adm-color-text: rgb(153, 112, 39);
  --adm-color-text: #3f4e66;
  // 按钮的配置
  --btn-normal-height: 4rem;
  --btn-normal-width: 12rem;
  --btn-normal-font-size: 1.8rem;
  --btn-normal-color: #fff;

  --btn-large-height: 4.5rem;
  --btn-large-width: 16rem;
  --btn-large-font-size: 2.2rem;
  --btn-large-color: #fff;

  --btn-small-height: 3.6rem;
  --btn-small-width: 10rem;
  --btn-small-font-size: 1.5rem;
  --btn-small-color: #fff;
  --border-bottom: solid 0px #000 !important;
  --border-top: solid 0px #000 !important;
  font-size: 62.5% !important;


}

body {
  //background: #1a1b1a;
  overflow: hidden;
  font-family: "ChangAnunitype-Regular", sans-serif;
  max-width: 430px;
  margin: 0 auto;
  font-size: 1.6rem !important;

  @media not all and (hover: hover) {
    height: var(--app-height);
  }
}

.kv-font {
  letter-spacing: 2px;
  font-family: ChangAnunitype-Regular, "ChangAnunitype-Regular", -apple-system, blinkmacsystemfont, 'Helvetica Neue', helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;;
}


.break-word {
  word-wrap: break-word;
  word-break: break-word
}

.page {
  position: relative;
  z-index: 99;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  background-image: url('#{$base_path}/img/kv/kv-bg-v3.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #d1e7ff;

  &:after {
    position: absolute;
    width: 100%;
    height: 100%;
    //content: "";
    left: 0;
    top: 0;
    background-image: url("#{$base_path}/img/kv/kv-star.png");
    background-size: contain;
    animation: pulse 10s infinite;
    pointer-events: none;
  }

  // &.page-sec {
  //   background-image: url('#{$base_path}/img/kv/kv-bg-sec.png');
  // }

  &.page-thd {
    background-image: url('#{$base_path}/img/kv/kv-bg-thd.jpg');
  }

  &.page-with-under {

    &:before {
      content: "";
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
      background-position: bottom center;
      background-repeat: no-repeat;
      background-size: contain;
      // background-image: url('https://vawey-test.oss-cn-beijing.aliyuncs.com/2023/3w-u-scape-230417/img/kv-under.png');
      z-index: 2;
    }
  }


  //&:after {
  //  content: "";
  //  width: 100%;
  //  height: 100%;
  //  background: rgba(0, 0, 0, .4);
  //  position: absolute;
  //  left: 0;
  //  top: 0;
  //}

  .position-center {
    width: 100%;
    position: absolute;
    z-index: 11;
    top: 50%;
    left: 50%;
    @include transform(translate(-50%, -50%));
  }
}

.cp-toolbar {
  // top: 42px;
  padding: 20px 0;
  .toolbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    .toolbar-item {
      display: flex;
      flex: 0 0 50%;
      align-items: center;
      justify-content: center;
      .item {
        // padding: 20px;
        // width: 45px;
        // height: 45px;
        text-align: center;
        line-height: 45px;
        // background-color: #73a1fb;
        // border-radius: 50%;
        // border: solid 1px #fff;
        &>img {
          width: 50px;
        }
        &+.item {
          margin-left: 20px;
        }
      }
    }
  }
  .tool-btn {
    color: #fff;
    border-color: #fff;
  }
}


.adm-button.act-btn {
  &.act-btn-primary {

  }

  font-family: "ChangAnunitype-Regular", -apple-system, blinkmacsystemfont, 'Helvetica Neue', helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;;

  &.adm-button-disabled {
    filter: grayscale(.9);
  }

  &.adm-button-large {

  }

  &.adm-button-small {
    min-width: 50px;
    height: 24px;
    line-height: 22px;
    font-size: 12px;
    padding: 0 20px;

    &:after {
      z-index: 0;
      top: -1px;
      background: transparent;
      border-bottom: 3px solid #82aef9;
    }
  }

  &.act-btn-normal,
  &.act-btn-diamond,
  &.act-btn-bevel {
    border: 0;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    // min-width: var(--btn-normal-width);
    padding: 6px 4rem;
    // height: var(--btn-normal-height);
    font-size: var(--btn-normal-font-size);
    color: var(--btn-normal-color);
    // padding: 0;
    font-family: "ChangAnunitype-Bold", -apple-system, blinkmacsystemfont, "Helvetica Neue", helvetica, segoe ui, arial, roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
    letter-spacing: 1px;

    &:active {
      @include transition(all 0.3s);
      @include transform(translateY(5px));
      @include boxShadow(none);
    }

    &.adm-button-small {
      min-width: var(--btn-small-width);
      height: var(--btn-small-height);
      font-size: var(--btn-small-font-size);
      line-height: var(--btn-small-height) - 2px;

      > span {
        font-size: var(--btn-small-font-size);
        line-height: var(--btn-small-height) - 2px;
      }
    }

    &.adm-button-large {
      width: var(--btn-large-width);
      height: var(--btn-large-height);
      font-size: var(--btn-large-font-size);
      line-height: var(--btn-large-height) - 2px;

      > span {
        // font-weight: 800;
        font-size: var(--btn-large-font-size);
        line-height: var(--btn-large-height) - 2px;
      }
    }

    &.adm-button-block {
      width: 100%;
    }
  }

  &.act-btn-bevel {
    //@include gradient(to top, #2f8df5, #59eeff);
    // @include borderRadius(50px);
    // background-image: url(#{$base_path}/img/kv/kv-btn.png);
    border: solid 1px #fff;
    border-radius: 13px;
    background-color: rgb(124, 152, 200);
    position: relative;
    // padding: 6px 0;
    // border-radius: 0;
    &.act-btn-bevel-2 {
      background-image: url(#{$base_path}/img/kv/kv-btn-2.png);
    }
    &.share-btn {
      background-image: url(#{$base_path}/img/game/share-btn-bg.png);
    }
    //&:after {
    //  position: absolute;
    //  width: 100%;
    //  height: 100%;
    //  background: var(--adm-color-secondary);
    //  left: 0;
    //  top: 2px;
    //  content: "";
    //  @include borderRadius(50px);
    //  z-index: -1;
    //}

    > span {
      font-size: var(--btn-normal-font-size);
      // color: var(--btn-normal-color);
      font-weight: 800;
      white-space: nowrap;
      //text-shadow: 0 2px 0 var(--adm-color-lighter);

      // &:before,
      // &:after {
      //   position: absolute;
      //   background: #fff;
      //   content: "";
      //   @include borderRadius(50%);
      // }

      // &:before {
      //   left: 11px;
      //   top: 3px;
      //   width: 4px;
      //   height: 3px;
      //   @include transform(rotate(-25deg))
      // }

      // &:after {
      //   left: 4px;
      //   top: 7px;
      //   width: 7px;
      //   height: 5px;
      //   @include transform(rotate(-50deg))
      // }
    }
  }

  &.act-btn-diamond {
    // background-image: url(https://vawey-test.oss-cn-beijing.aliyuncs.com/2023/3w-u-scape-230417/img/btn-bg-sec.png);
  }

  &.act-btn-normal {
    background: #9bccee;
    border: 1px solid var(--adm-color-primary);
    //@include gradient(0, #1d8ed7 0%, #c6e9f9 100%);
    @include boxShadow(0px 5px 0px 0px var(--adm-color-primary));


    > span {
      vertical-align: top;
      display: inline-block;
      line-height: var(--btn-normal-height) - 2px;
      //text-shadow: 0 1px 0 #295d92;
    }
  }

  &.act-btn-red {

    &.adm-button-fill-outline {
      color: #DB4F63;
      border-color: #DB4F63;
      background: transparent;
    }

    color: #fff;
    border-color: #DB4F63;
    background-color: #DB4F63;
  }
}

.adm-modal {
  &.blank-modal {

  }

  .blank-modal-mask {
    background: rgba(0, 0, 0, 0.75) !important;
  }
}

.adm-modal-body {
  &.blank-modal-body {
    padding: 0;
    background: rgba(255, 255, 255, 0);
    max-height: 90vh !important;
    //width: var(--max-width) !important;
    pointer-events: none;

    > .adm-modal-content {
      padding: 0;
      max-height: 90vh !important;
      //pointer-events: none;
      //
      > * {
        pointer-events: all;
      }
    }

  }

  &.act-rule-modal {
    //background-color: rgba(255, 255, 255, 1) !important;
    background-color: #f3e4e5 !important;
    @include borderRadius(10px !important);
    width: var(--max-width) !important;
    color: var(--adm-color-secondary) !important;
    padding: 12px 0 64px !important;
    box-sizing: border-box;
    max-height: 75vh !important;
    overflow: visible;

    &:after {
      pointer-events: none;
      content: "";
      width: 100%;
      height: 30px;
      position: absolute;
      left: 0;
      top: calc(100% - 64px - 30px + 1px);
      @include gradient(to bottom, rgba(243, 228, 229, 0), rgba(243, 228, 229, 1))
    }

    .operation {
      position: absolute;
      left: 0;
      bottom: 18px;
    }

  }

  .adm-modal-header {
    .rule-title {
      margin-top: -120px;

      img {
        width: 100%;
      }
    }
  }

  .adm-modal-content {
    //max-height: 70vh !important;
  }

  .adm-modal-footer.adm-modal-footer-empty {
    display: none;
  }
}

.bottom-operation {
  position: fixed;
  background: #fff;
  width: 100%;
  left: 0;
  bottom: 0;
  @include borderRadius(15px 15px 0 0);
  @include boxShadow(0px 2px 10px 0px rgba(29, 28, 28, 0.19));

  .inner {
    padding: 12px;


  }
}

.adm-center-popup-close.adm-plain-anchor {
  color: #fff;
}
.adm-modal>.adm-mask {
  background: rgba(0, 0, 0, 0.5) !important;
}
.adm-mask.share-mask {
  z-index: 9999;

  .content {
    position: fixed;
    right: 5vw;
    top: 1vw;
    color: #fff;
    text-align: center;
    padding-top: .6rem;

    > img {
      width: 80px;
      margin-right: 10vw;
    }

    > .txt {
      padding: 1.6rem 0;
    }
  }
}

.img-hidden {
  display: none;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.adm-modal-body.share-tips-modal {
  .title {
    img {
      display: none;
    }
  }
  .content {
    position: absolute;
    top: -20vh;
    left: -4vw;
  }

  &.adm-center-popup-body {
    background-color: transparent;
  }

  .adm-center-popup-wrap {
    background-color: transparent !important;
  }
}
.adm-modal-body.share-result-modal {
  .content {
    // background-image: url(#{$base_path}/img/game/share-tip-bg.png) !important;
    height: 220px;
    background-size: 100% 100%;
    display: flex;
    // align-items: center;
    justify-content: center;
    // width: 90vw;
  }
  .operation {
    padding: 0px 10vw;
    box-sizing: border-box;
  }
}
.adm-center-popup-wrap {
  width: 90vw !important;
  min-width: auto !important;
  max-width: 90vw !important;
}
.p-wheel {
  background-image: url(#{$base_path}/img/kv/kv-bg.png)
}
.adm-input {
  min-height: auto;
}
@import "../components/common/style";
@import "../components/pages/style";